Devcontainer features
https://containers.dev/implementors/features/
Dockerfileを用意せずに、既存のdocker imageに機能を追加できる仕組み
実態はinstall.shというshell scriptを動かしてimageに手を加え、最終的に新しいimageをdevcontainerのプログラム内で作成する
rebuild時、前回成功した&設定を変えていないfeaturesはcachedとしてそのまま使用される
一覧
https://containers.dev/features
localに配置したのも参照出来る
https://containers.dev/implementors/features-distribution/#addendum-locally-referenced
開発
template
https://github.com/devcontainers/feature-starter
テスト方法
https://qiita.com/P-man_Brown/items/5ef5d2fa22d231f20e42
optionsの書式
https://containers.dev/implementors/features/#
string or boolean
booleanはBashのbooleanではなく、"true"/"false"のどちらかが文字列としてshell scriptに与えられる
#Devcontainer
#2025-10-18 17:51:29
#2025-10-13 11:21:05
#2023-12-31 06:24:13
#2023-12-16 06:16:08
#2023-10-30 07:13:08